package com.lanou.member.contorller;

import com.lanou.beans.Member;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpSession;

@RestController
public class MemberContorller {

    @RequestMapping("/test")
    public String foo(HttpSession session){
        Member m = new Member();
        m.setUsername("luo");
        session.setAttribute("user",m);
        return "member成功";
    }
}
